package com.cq.hd.product.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 活动商品库存校验参数
 *
 * @author much
 * @since 2024/06/24 23:02
 */
@Data
public class ActiveGoodsStockCheckDto implements Serializable {
    private static final long serialVersionUID = 8521572150037266675L;

    @NotNull(message = "请先填写活动库存")
    @ApiModelProperty(value = "活动库存")
    private Integer totalStock;

    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @NotNull(message = "商品数量不能为空")
    @ApiModelProperty(value = "商品数量")
    private Integer goodsNum;

}
